package cn.edu.nju.software.cdiy.bean;

import java.io.Serializable;
import java.math.BigDecimal;

public class MyModel implements Serializable {

	private static final long serialVersionUID = -6873005792469716710L;
	private Long hardwareId;
	private Long orderId;

	private String hardwareName;
	private BigDecimal price;
	private int num;
	private Integer suppliserId;

	public MyModel() {

	}

	public void increment() {
		num++;
	}

	public void incrementByNumber(int k) {
		num = num + k;
	}

	public MyModel(Long hardwareId, String hardwareName, BigDecimal price,
			int num, Integer supplierId) {
		this.hardwareId = hardwareId;
		this.hardwareName = hardwareName;
		this.price = price;
		this.num = num;
		this.setSuppliserId(supplierId);
	}

	public Long getOrderId() {
		return orderId;
	}

	public void setOrderId(Long orderId) {
		this.orderId = orderId;
	}

	public String getHardwareName() {
		return hardwareName;
	}

	public void setHardwareName(String hardwareName) {
		this.hardwareName = hardwareName;
	}

	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	public int getNum() {
		return num;
	}

	public void setNum(int num) {
		this.num = num;
	}

	public Long getHardwareId() {
		return hardwareId;
	}

	public void setHardwareId(Long hardwareId) {
		this.hardwareId = hardwareId;
	}

	public Integer getSuppliserId() {
		return suppliserId;
	}

	public void setSuppliserId(Integer suppliserId) {
		this.suppliserId = suppliserId;
	}

}
